package com.zhanghe.mall.pojo;

import com.zhanghe.mall.pojo.common.BasePojo;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 员工表
 *
 * @author Clevo
 * @date 2018/10/11
 */
@Entity
@Table(name = "staff")
public class Staff extends BasePojo {

    /**
     * 所属账户
     */
    @ManyToOne
    @JoinColumn(name = "account_id")
    public Account account;
    /**
     * 名称
     */
    public String name;

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
